package com.bw.cinema.service

import com.bw.cinema.api.MutilVideoApi
import com.bw.cinema.entity.MutilVideoEntity
import com.bw.lib_net.BaseRes
import com.bw.lib_net.RetrofitFactory
import retrofit2.http.Query

class MutilVideoService {
    private val api: MutilVideoApi

    init {
        api = RetrofitFactory.getRetrofit().create(MutilVideoApi::class.java)
    }

    suspend fun getMutilVideo(page: Int, size: Int, id: Int)
            : BaseRes<List<MutilVideoEntity>> {
        return api.getMutilVideo(page, size, id)
    }
}